<!--  -->
<template>
   <div class='firstlevelCheckcenter'>
     <div  style="padding-top:30px;padding-left:20px;flex:1;height:100%" >
        <Tabs type="card" ref="tabsWrap1" :animated="false"  :value="currentName"  @on-click="tabClick1" style="height:100%">
		  <TabPane label="待审核" name="checkWait" style="height:100%">
             <propertyList v-if="currentName == 'checkWait'" @changeName="changeName" ref="checkWait" currentName = "checkWait" currentCheckStatus="2"  />
		  </TabPane>
		  <Tab-pane label="审核通过" ref="checkPass"   name="checkPass" :disabled="changeTab" style="height:100%">
             <propertyList v-if="currentName == 'checkPass'"   @changeName="changeName" :chengeNameStatus="currentName"  currentName = "checkPass" currentCheckStatus="3"/>
		  </Tab-pane>
          <Tab-pane label="审核驳回" ref="checkReject" name="checkReject" :disabled="changeTab" style="height:100%">
              <propertyList  v-if="currentName == 'checkReject'" @changeName="changeName" :chengeNameStatus="currentName" currentName = "checkReject" currentCheckStatus="4"/>
		  </Tab-pane>
		</Tabs>
      </div>
   </div>
</template>

<script>
import propertyList from "@/components/buildingCheckcenter/propertyList"
export default {
components: {propertyList},
data() {
return {
   navTitle:'一级审核',
   currentName:'checkWait',
   changeTab:false,
   ifshowDetail:true,
   prop_id:'',
   prop_flage:''
};
},
computed: {},
watch: {},
methods: {
  init(){
     this.$refs.tabsWrap1.changeTab('checkWait');
     document.querySelector(".ivu-tabs-content").style.flex=1;
     this.$route.query.changeName &&  this.changeName(this.$route.query.changeName)
   },
   tabClick1(name){
    this.currentName = name;
   },
   changeName(id){
      if(id == 1){
        this.currentName = 'checkPass';
      }else{
        this.currentName = 'checkReject';
      }
   },
},
created() {
  let {tabName} = this.$route.query;
  tabName && (this.currentName = tabName == 1?'checkPass':'checkReject')
},
mounted() {

},
}
</script>
<style lang='scss' scoped>
 .firstlevelCheckcenter{
   height: 100%;
 }
</style>